/*
import java.util.Scanner;

*/
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lyn
 * Date: 2025-01-16
 * Time: 10:01
 *//*

class Student{
    //public String name;//姓名
    public int age = 19;//年龄
    public double aveScore = 91.23;//平均分
    public void studentGreet(){
        System.out.println("大家好！");
    }
    public void studentAge(){

        System.out.println("我今年18岁了！");
    }
    */
/*public Student(){
        System.out.println("测试调用构造方法");
    }
    public Student(String name, int age, double aveScore){
        this();
        this.name = name;
        this.age = age;
        this.aveScore = aveScore;*//*





    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Data data = new Data(x, y);
            System.out.println(data.getX() + data.getY());
        }
    }

}

class Data {

    private int x;
    private int y;

    public Data(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

}*/
